<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no" />
    <title>约来约美 </title>
    <link rel="stylesheet" href="${static_host}style/jquery.mmenu-5.0.3.css" />
    <link rel="stylesheet" href="${static_host}style/hhframe-1.0.0.css" />
    <link rel="stylesheet" href="${static_host}style/services_dt.css" />
	<style type="text/css">
    .intro img{
     width: 90%; 
     max-width: 90% !important; 
    }
    </style>
</head>
<body>
  
  <div class="framepage services_dt">
    
    <!-- header -->
    <div class="header">
      <a href="javascript:history.back();" class="pos-l icon hd-return">返回</a>
      <h1 class="hd-title">限时特卖详情</h1>
<!--       <a href="javascript:;" class="pos-r icon hd-star">收藏</a> -->
    </div>
    
    <!-- content -->
    <div class="wrapper">
    <div class="content">
       <div class="scroll">
      	<div class="slide_01" id="slide_01">
      	<s:iterator value="#request.group.piclist" var="pic">
      	          <div class="mod_01"><a href="javascript:;"><img src="${pic}" /></a></div>
      	</s:iterator>


        </div>
        
        <div class="dotModule_new">
          <div id="slide_01_dot"></div>
        </div>
      </div>
      
      <div class="baseinfo">
        <p class="gp"><span class="nprice tag_discount" id="benprice">￥ ${group.price}</span><span class="oprice">￥ ${group.original_price}</span><span class="count">${group.buyer_num} 人做过</span></p>
      <p class="dp">${group.name}</p> 
        <p class="time">耗时：${group.howlong}分钟</p>
      </div>
      
      <div class="contact">
        <a class="addrs" href="javascript:;">${group.address} </a>
        <a class="phone" href="tel:${group.telephone}">电话</a>
      </div>
      
         <ul class="listview">
      <li><a href="store!commentlist.do?id=${group.id}&type=2">服务评论<span class="descp2"> ${group.comment_count}条</span></a></li>
      </ul>
      
 <!--      <div class="intro">
        <h3>购买须知</h3>
        <p>此处展示购买须知内容。</p>
        <p>门店服务：支持WIFI 门店介绍： 金枝玉叶主营美容养生，欢迎新老顾客莅临体验。</p>
      </div> -->
	
	 <ul class="listview">

      <li><a href="#OrderTime" class="set_time">预约时间<span class="descp2">未预约</span></a></li>

      </ul>
      
      <form action="centent!buyorder.do" method="post">
     <input type="hidden" name="order.itemimg" value="${group.pic}" />
      <input type="hidden" name="order.store_id" value="${group.store_id}" />
      <input type="hidden" name="order.store_name" value="${group.store_name}" />
      <input type="hidden" name="order.item_id" value="${group.id}" />
      <input type="hidden" name="order.item_name" value="${group.name}" />
   	  <input type="hidden" name="order.beautician_name" value="限时特惠"  id="beautician_name"  />
      <input type="hidden" name="order.beautician_id" value="0"   class="beauticianid"  id="beautician_id"  />
     <input type="hidden" name="order.order_type"  value="3" />
      <input type="hidden" name="order.pay_type"  value="2" />
      <input type="hidden" name="order.price" id="postprice" value="${group.price}" />       
      <input type="hidden" name="yuyue_time" value="" class="yuyue_time" />      
     <input type="hidden" name="hour" value="${group.howlong}" class="order_hour" />   
	 <input type="hidden" name="order_time" value="" class="order_time" />

      </form>
      <s:if test="#request.isend==1">
                <a href="javascript:;" class="btn ">特卖已结束</a>
      </s:if>
      <s:else>
            <a href="javascript:;" class="btn buy">立即预约</a>
      </s:else>



<hr />
      
        <div class="intro">
        <h3>服务详情</h3>

        <p> ${group.intro} 
      </p>
      </div>
    
    </div>
    </div>
    
    <!-- footer -->
	<jsp:include page="/inc/discountfooter.jsp" />
    
    <!-- OrderTime -->
    <div id="OrderTime">
      <div>
      
      <div class="header">
        <a href="javascript:;" class="pos-l icon hd-return">返回</a>
        <h1 class="hd-title">选择预约时间</h1>
      </div>
      
      <div class="timetable">
      
        <ul class="cate">
        <li class="selected">今天<span></span></li>
        <li>明天<span></span></li>
        <li>后天<span></span></li>
        <li id="date4"><span></span></li>
        </ul>
       <div id="datehtml">
        </div>
      
      </div>
      
      </div>	
    </div>
    
    <!-- OrderEmid -->
    <div id="OrderEmid">
      <div>
      
      <div class="header">
        <a href="javascript:;" class="pos-l icon hd-return">返回</a>
        <h1 class="hd-title">选择预约技师</h1>
      </div>
      
      <div class="emlist">
        <ul class="employees">
             <li emid="0" money="${group.price}" style="height: 30px; text-align: center;padding-top: 15px">
				 <p class="name"><span >到店安排</span></p>
              </li>
         <s:iterator value="#request.list">
         
      <li emid="${beautician_id}" money="${baojia}">
        <a href="#" class="left">
        <img src="${beautician_pic}" />
        <p>好评：${good_num}</p>
        <p>差评：${bad_num}</p>
        </a>
<a href="javascript:;" class="right mm-selected">
        <div>
        <p class="name">${beautician_name}<span class="stars star${avglevel}">${beautician_name}</span></p>
        <p class="count">接单数：${order_num}</p>
        <p class="descp">服务报价：<strong style="color:red">￥${baojia}</strong></p>
        </div>
        </a>
      </li>
      </s:iterator>
     
   
        </ul>
      </div>
      
      </div>	
    </div>
  
  </div>
    <script src="${static_host}script/jquery-1.11.1.min.js"></script>
    <script src="${static_host}script/jquery.mmenu-5.0.3.js"></script>
    <script src="${static_host}script/jquery.iscroll.5.js"></script>
    <script src="${static_host}script/jquery.scroll.js"></script>
    <script src="${static_host}script/hhframe-1.0.0.js"></script>
    <script src="${static_host}script/discount_dt.js?id=1"></script>
 <script type="text/javascript">
 var publicjson =${jsonString};
 $(function(){
	 if($("#beautician_id").val()=="0"){
		 //去渲染
		 doresult(publicjson);
	 }
 })
 </script>
</body>
</html>